package com.warehouse.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * @description
 * @Author Lin
 * @Date 2021/4/16 20:33
 */
@Component
public class TokenUtils {

    @Autowired
    HttpServletRequest request;

    //获取token
    public String gainToken(){
        return request.getHeader("openID");
    }

}
